﻿Library.Crypto.S4 = function() {
    return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
Library.Crypto.Guid = function() {
    return (Library.Crypto.S4() + Library.Crypto.S4() + "-" + Library.Crypto.S4() + "-" + Library.Crypto.S4() + "-" + Library.Crypto.S4() + "-" + Library.Crypto.S4() + Library.Crypto.S4() + Library.Crypto.S4());
}
Library.Crypto.Md5 = function (s) { return rstr2hex(rstr_md5(str2rstr_utf8(s))); }